﻿using System.Windows;
using System.Windows.Controls;

namespace testWPF
{
    public class MediaElementViewModel : DependencyObject
    {
        public MediaElementViewModel(MediaElement media, MediaState mediaState)
        {
            // TODO: Complete member initialization
            this.mediaView = media;
            this.LoadedBehavior = mediaState;
            this.mediaCmd = new MediaElementModel(this);
            this.canExecuteCommand = true;
            this.Source = "C:\\Users\\Public\\Videos\\Sample Videos\\Wildlife.wmv";
            this.mediaView.Visibility = Visibility.Hidden;
        }

        public MediaElementModel mediaCmd { set; get; }
        public MediaElement mediaView { set; get; }
        public bool canExecuteCommand { set; get; }
        public string Source { set; get; }
        public MediaState LoadedBehavior { set; get; }
    }
}
